package isanfeng.tuxiaoer.principle.test;

/**
 * @author 李红辉
 * @version 1.0
 * @date 2019/9/3 9:05
 */
public class Ladder  {

    public static int ladder(int n) {
        if (n == 1) {
            return 1;
        } else if (n == 2) {
            return 2;
        } else {
            return ladder(n - 1) + ladder(n - 2);
        }
    }

    public static void main(String[] args) {
        System.out.println(ladder(11));
    }
}

